package io.kimmking.rpcfx.register.center.api;

import io.kimmking.rpcfx.api.Router;
import io.kimmking.rpcfx.proxy.CustomInterceptor;

import java.util.List;

/**
 * @author lfy
 */
public interface Discovery {
    /**
     * 发现服务
     * @param discoveryInfo
     * @return
     */
    List<ProviderInfo> discovery(DiscoveryInfo discoveryInfo, CustomInterceptor handler, Router router);
    /**
     * 发现服务
     * @param discoveryInfo
     * @return
     */
    List<ProviderInfo> discovery(DiscoveryInfo discoveryInfo, Router router);
}
